//
//  FKCustomBannerCell.m
//  WanTao
//
//  Created by Macbook Pro on 2019/5/28.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKCustomBannerCell.h"

@implementation FKCustomBannerCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
//        self.backgroundColor = [UIColor redColor];
        UIView *container = [[UIView alloc] init];
        [self.contentView addSubview:container];
        container.backgroundColor = [UIColor whiteColor];
        
        UIImageView *iconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@""]];
        [container addSubview:iconView];
        self.iconView = iconView;
        [iconView fk_viewCornerRadius:10 borderWidth:0 borderColor:nil];
        
        [container mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.offset(0);
        }];
        [iconView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.offset(10);
            make.bottom.right.offset(-10);
        }];
    }
    return self;
}

@end
